import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/user_detail_entity.dart';

UserDetailEntity $UserDetailEntityFromJson(Map<String, dynamic> json) {
	final UserDetailEntity userDetailEntity = UserDetailEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		userDetailEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		userDetailEntity.code = code;
	}
	final UserDetailData? data = jsonConvert.convert<UserDetailData>(json['data']);
	if (data != null) {
		userDetailEntity.data = data;
	}
	return userDetailEntity;
}

Map<String, dynamic> $UserDetailEntityToJson(UserDetailEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

UserDetailData $UserDetailDataFromJson(Map<String, dynamic> json) {
	final UserDetailData userDetailData = UserDetailData();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		userDetailData.id = id;
	}
	final String? uniqueId = jsonConvert.convert<String>(json['uniqueId']);
	if (uniqueId != null) {
		userDetailData.uniqueId = uniqueId;
	}
	final String? userName = jsonConvert.convert<String>(json['userName']);
	if (userName != null) {
		userDetailData.userName = userName;
	}
	final String? passWord = jsonConvert.convert<String>(json['passWord']);
	if (passWord != null) {
		userDetailData.passWord = passWord;
	}
	final String? telPhone = jsonConvert.convert<String>(json['telPhone']);
	if (telPhone != null) {
		userDetailData.telPhone = telPhone;
	}
	final String? location = jsonConvert.convert<String>(json['location']);
	if (location != null) {
		userDetailData.location = location;
	}
	final bool? isAuth = jsonConvert.convert<bool>(json['isAuth']);
	if (isAuth != null) {
		userDetailData.isAuth = isAuth;
	}
	final String? hobby = jsonConvert.convert<String>(json['hobby']);
	if (hobby != null) {
		userDetailData.hobby = hobby;
	}
	final String? selfIntroduction = jsonConvert.convert<String>(json['selfIntroduction']);
	if (selfIntroduction != null) {
		userDetailData.selfIntroduction = selfIntroduction;
	}
	final int? sex = jsonConvert.convert<int>(json['sex']);
	if (sex != null) {
		userDetailData.sex = sex;
	}
	final String? birthYear = jsonConvert.convert<String>(json['birthYear']);
	if (birthYear != null) {
		userDetailData.birthYear = birthYear;
	}
	final String? birthMonth = jsonConvert.convert<String>(json['birthMonth']);
	if (birthMonth != null) {
		userDetailData.birthMonth = birthMonth;
	}
	final String? birthDay = jsonConvert.convert<String>(json['birthDay']);
	if (birthDay != null) {
		userDetailData.birthDay = birthDay;
	}
	final String? birth = jsonConvert.convert<String>(json['birth']);
	if (birth != null) {
		userDetailData.birth = birth;
	}
	final String? nickName = jsonConvert.convert<String>(json['nickName']);
	if (nickName != null) {
		userDetailData.nickName = nickName;
	}
	final dynamic? userMail = jsonConvert.convert<dynamic>(json['userMail']);
	if (userMail != null) {
		userDetailData.userMail = userMail;
	}
	final dynamic? userPic = jsonConvert.convert<dynamic>(json['userPic']);
	if (userPic != null) {
		userDetailData.userPic = userPic;
	}
	final int? accountStatus = jsonConvert.convert<int>(json['accountStatus']);
	if (accountStatus != null) {
		userDetailData.accountStatus = accountStatus;
	}
	final dynamic? expireTime = jsonConvert.convert<dynamic>(json['expireTime']);
	if (expireTime != null) {
		userDetailData.expireTime = expireTime;
	}
	final int? liveType = jsonConvert.convert<int>(json['liveType']);
	if (liveType != null) {
		userDetailData.liveType = liveType;
	}
	final String? liveRoomNo = jsonConvert.convert<String>(json['liveRoomNo']);
	if (liveRoomNo != null) {
		userDetailData.liveRoomNo = liveRoomNo;
	}
	final int? accountType = jsonConvert.convert<int>(json['accountType']);
	if (accountType != null) {
		userDetailData.accountType = accountType;
	}
	final int? userType = jsonConvert.convert<int>(json['userType']);
	if (userType != null) {
		userDetailData.userType = userType;
	}
	final dynamic? ryUserId = jsonConvert.convert<dynamic>(json['ryUserId']);
	if (ryUserId != null) {
		userDetailData.ryUserId = ryUserId;
	}
	final dynamic? ryToken = jsonConvert.convert<dynamic>(json['ryToken']);
	if (ryToken != null) {
		userDetailData.ryToken = ryToken;
	}
	final dynamic? wbNickName = jsonConvert.convert<dynamic>(json['wbNickName']);
	if (wbNickName != null) {
		userDetailData.wbNickName = wbNickName;
	}
	final String? registerTime = jsonConvert.convert<String>(json['registerTime']);
	if (registerTime != null) {
		userDetailData.registerTime = registerTime;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		userDetailData.createTime = createTime;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		userDetailData.updateTime = updateTime;
	}
	return userDetailData;
}

Map<String, dynamic> $UserDetailDataToJson(UserDetailData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['uniqueId'] = entity.uniqueId;
	data['userName'] = entity.userName;
	data['passWord'] = entity.passWord;
	data['telPhone'] = entity.telPhone;
	data['location'] = entity.location;
	data['isAuth'] = entity.isAuth;
	data['hobby'] = entity.hobby;
	data['selfIntroduction'] = entity.selfIntroduction;
	data['sex'] = entity.sex;
	data['birthYear'] = entity.birthYear;
	data['birthMonth'] = entity.birthMonth;
	data['birthDay'] = entity.birthDay;
	data['birth'] = entity.birth;
	data['nickName'] = entity.nickName;
	data['userMail'] = entity.userMail;
	data['userPic'] = entity.userPic;
	data['accountStatus'] = entity.accountStatus;
	data['expireTime'] = entity.expireTime;
	data['liveType'] = entity.liveType;
	data['liveRoomNo'] = entity.liveRoomNo;
	data['accountType'] = entity.accountType;
	data['userType'] = entity.userType;
	data['ryUserId'] = entity.ryUserId;
	data['ryToken'] = entity.ryToken;
	data['wbNickName'] = entity.wbNickName;
	data['registerTime'] = entity.registerTime;
	data['createTime'] = entity.createTime;
	data['updateTime'] = entity.updateTime;
	return data;
}